import Vue from 'vue'
import router from './router'
import App from './views/App.vue'

// 引入公共样式
import './assets/css/base.css'
import './assets/css/iconfont.css'

/***************  配置ElementUI  */
import ElementUI, { Message } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

/***************  导入bootstrap  */
import $ from 'jquery'
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import '../node_modules/bootstrap/dist/js/bootstrap.min.js'

/***************  瀑布流  */
import waterfall from 'vue-waterfall2'
Vue.use(waterfall)

/***************  配置axios  */
import axios from 'axios'
import config from './config'
axios.defaults.baseURL = `http://${config.ip}:8989/api/v1`
Vue.prototype.$axios = axios
Vue.config.productionTip = false

new Vue({
  router,
  $,
  render: h => h(App)
}).$mount('#app')
